package com.hoshiicloud.saleorder.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author:campchen
 * @Date:Created in 下午 01:37 2019/8/22
 * @PACKAGENAME com.hoshiicloud.saleorder.entity
 * @Description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "发货单明细")
public class DispatchBillDetail extends Model<DispatchBillDetail> {

    @ApiModelProperty(name = "id", value = "", example = "")
    private Long id;

    @ApiModelProperty(name = "dispatchBillId", value = "发货单ID", example = "")
    private Long dispatchBillId;

    @ApiModelProperty(name = "orderId", value = "订单ID", example = "")
    private String orderId;

    @ApiModelProperty(name = "skuId", value = "base_sku.id", example = "")
    private Long skuId;

    @ApiModelProperty(name = "skuCode", value = "sku编码", example = "")
    private String skuCode;

    @ApiModelProperty(name = "spuName", value = "商品名称", example = "")
    private String spuName;

    @ApiModelProperty(name = "spuSpec", value = "商品规格", example = "")
    private String spuSpec;

    @ApiModelProperty(name = "spuBarcode", value = "商品条码", example = "")
    private String spuBarcode;

    @ApiModelProperty(name = "spuCategory", value = "商品类目", example = "")
    private String spuCategory;

    @ApiModelProperty(name = "quantity", value = "发货数量", example = "")
    private Long quantity;

    @ApiModelProperty(name = "deleted", value = "是否删除", example = "")
    private Integer deleted;

    @ApiModelProperty(name = "remark", value = "发货备注", example = "")
    private String remark;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createdTime", value = "创建时间", required = true, dataType = "java.util.Date", example = "2019-05-04 10:08:35", hidden = true)
    private LocalDateTime createdTime;

    /**
     * 创建人
     */
    @ApiModelProperty(name = "createdBy", value = "创建人", required = true, dataType = "java.lang.String", example = "admin", hidden = true)
    private String createdBy;

    /**
     * 修改时间
     */
    @ApiModelProperty(name = "updatedTime", value = "修改时间", required = true, dataType = "java.util.Date", example = "2019-05-04 10:08:35", hidden = true)
    private LocalDateTime updatedTime;

    /**
     * 修改人
     */
    @ApiModelProperty(name = "updatedBy", value = "修改人", required = true, dataType = "java.lang.String", example = "admin", hidden = true)
    private String updatedBy;

}
